﻿using System;
using System.Collections;
using System.Linq;
using System.Text;
using CK.Plugin;

namespace GesturePlugin
{
    public interface IGesturePlugin : ICKService
    {

        IList GestureDictionnary { get; }

        /// <summary>
        /// Fired at each gesture recognized
        /// </summary>
        event GesturePluginEventHandler GestureMatched;

        
    }

    public delegate void GesturePluginEventHandler(object sender, GesturePluginEventArgs e);


    /// <summary>
    /// EventArgs which define basic parameter for a GestureProcessing action.
    /// </summary>
    public class GesturePluginEventArgs : EventArgs
    {
        //The recognized gesture
        public readonly Gesture Gesture;

        public GesturePluginEventArgs(Gesture gesture)
        {
            Gesture = gesture;
        }

    }
}
